package com.sy.service.impl;

import com.sy.dto.AdminMenuDto;
import com.sy.dto.CoachMenuDto;
import com.sy.dto.MemberMenuDto;
import com.sy.mapper.MenuMapper;
import com.sy.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * description: MenuServiceImpl <br>
 * date: 2022/6/24 10:17 AM <br>
 * author: zoumaoji <br>
 * version: 1.0 <br>
 */

@Service
public class MenuServiceImpl implements MenuService {
    @Autowired
    private MenuMapper menuMapper;
    @Override
    public List<AdminMenuDto> getAdminMenu() {
        return menuMapper.selectAdminMenu();
    }

    @Override
    public List<CoachMenuDto> getCoachMenu() {
        return menuMapper.selectCoachMenu();
    }

    @Override
    public List<MemberMenuDto> getMemberMenu() {
        return menuMapper.selectMemberMenu();
    }
}
